package com.gxa.ehome.mapper;

import com.gxa.ehome.pojo.SysUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.type.MappedTypes;

import java.io.Serializable;
import java.util.List;
import java.util.Map;


public interface SysUserMapper {

    /*@Select(value = "select * from sysUser where id=#{id}")*/

    /**
     * 查询用户对象,包括权限列表
     * @param id 目标用户的编号
     * @return 系统用户对象
     */
    SysUser findById(Serializable id);

    List<SysUser> findAll(SysUser sysUser);

    List<SysUser> findAllByPage(int page,int limit);

    List<SysUser> findAllByLike(String patten);


    void save(SysUser sysUser);

    void saveByParamaterMap(SysUser sysUser);

    void saveByParam(String jobNumber,String password);

    void saveByMap(Map<String,String> map);

    void deleteById(Serializable id);

    void deleteBatch(List<Integer> list);

    void update(SysUser sysUser);
}
